import { usePageVariablesStoreHook } from '@/store/modules/pageVariables'

const usePageVariablesStore = usePageVariablesStoreHook()

export const titles = {
	id: '编号',// id
	parentId: '上级单位',// parentId
	parentName: '所属单位',// parentName
	unityName: '单位名称',// unityName
	unityType: '单位类型',// unityType
	contactName: '联系人名称',// contactName
	contactPhone: '联系电话',// contactPhone
	unityRole: '单位权限组',// unityRole
	superUser: '超管账号',// superUser	
	superUserPassword: '超管密码',// superUserPassword
	remark: '备注',// remark
	allowAccountLogin: '是否允许账号登录',
	action: '操作',
}
export const prompt = {
	id: '请输入' + titles.id,
	parentId: '请选择' + titles.parentId,
	unityName: '请输入' + titles.unityName,
	unityType: '请选择' + titles.unityType,
	contactName: '请输入' + titles.contactName,
	contactPhone: '请输入' + titles.contactPhone,
	remark: '请输入' + titles.remark,
	unityRole: '请选择' + titles.unityRole,
	superUser: '请输入' + titles.superUser,
	superUserPassword: '请输入' + titles.superUserPassword,
	parentName: '请输入' + titles.parentName,
	allowAccountLogin: '请选择' + titles.allowAccountLogin,
}
export const defaultSearchForm = () => {
	return {
		unityName: '',// unityName
		unityType: '',// unityType
		parentId: usePageVariablesStore.getManage().unityId,// parentId
		page: 1,
		limit: 10,
	}
}
export const defaultInfoForm = () => {
	return {
		id: null,// id
		parentId: null,// parentId
		unityName: null,// unityName
		unityType: null,// unityType
		contactName: null,// contactName
		contactPhone: null,// contactPhone
		remark: null,// remark
		unityRole: [],// unityRole
		superUser: null,// superUser
		superUserPassword: null,// superUserPassword
		parentName: null,// parentName
	}
}
